import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function list(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/res/product/package/list',
        method: 'post',
        params
    })
}

export function add(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/res/product/package/add',
        method: 'post',
        params
    })
}

export function edit(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/res/product/package/edit',
        method: 'post',
        params
    })
}

export function detail(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/res/product/package/optional/{params}',
        method: 'post',
        params
    })
}

export function editSort(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/res/product/package/sort',
        method: 'post',
        params
    })
}

export function delPackageProduct(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/res/product/package/del',
        method: 'post',
        params
    })
}